//
//  SignUpInAdvanceController.m
//  这家测试项目
//
//  Created by IOS_DEVELOPER on 2017/6/5.
//  Copyright © 2017年 陈志凌. All rights reserved.
//

#import "ZJSignUpInAdvanceController.h"
#import "ZJRegistrationInformationSecConroller.h"
#import "ZJRegistrationInformationConroller.h"

#import "ZJReviewVC.h"
@interface ZJSignUpInAdvanceController ()<UIScrollViewDelegate>
@property (weak, nonatomic) IBOutlet UIButton *nextBtn;
@property (weak, nonatomic) IBOutlet UIScrollView *scorllview;
@property (weak, nonatomic) IBOutlet UILabel *bmTitle;
@property (strong, nonatomic) IBOutletCollection(UIView) NSArray *lineV;
@property (strong, nonatomic) IBOutletCollection(UILabel) NSArray *leftLabel;

@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray *rightImg;

@end

@implementation ZJSignUpInAdvanceController
-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    self.scorllview.contentSize = CGSizeMake(0,SCREEN_HEIGHT);
}
- (void)viewDidLoad {
    [super viewDidLoad];
    for (UIImageView *imgv in self.rightImg) {
        imgv.image = [UIImage imageWithContentsOfFile:[Utils imgPath:@"tqbm_icon_yjh@3x.png"]];
    }
    for (UIView * linev in self.lineV) {
        linev.backgroundColor = [Utils colorWithHexString:allConstHexColor];
    }
    for (UILabel * label in self.leftLabel) {
        label.font = [UIFont systemFontOfSize:[Utils iphone5AutoScaleW:10.0f]];
    }
    self.bmTitle.textColor = [Utils colorWithHexString:allConstHexColor];
    [self.nextBtn setBackgroundColor:[Utils colorWithHexString:allConstHexColor]];
}


- (IBAction)nextBtn:(UIButton *)sender {
    if ([allConstAuthenticated isEqualToString:@"1"]) {
        
        ZJRegistrationInformationSecConroller *vc = [[UIStoryboard storyboardWithName:@"Home" bundle:nil] instantiateViewControllerWithIdentifier:@"ZJRegistrationInformationSecConroller"];
        [self.navigationController pushViewController:vc animated:YES];
        
    }else if ([allConstAuthenticated isEqualToString:@"2"]){
        
        ZJReviewVC *vc = [[UIStoryboard storyboardWithName:@"Home" bundle:nil] instantiateViewControllerWithIdentifier:@"ZJReviewVC"];
        vc.isBackRoot = YES;
        [self.navigationController pushViewController:vc animated:YES];
        
    }
    else{
        
        ZJRegistrationInformationConroller *vc = [[UIStoryboard storyboardWithName:@"Home" bundle:nil] instantiateViewControllerWithIdentifier:@"ZJRegistrationInformationConroller"];
        vc.isBackRoot = YES;
        [self.navigationController pushViewController:vc animated:YES];
        
    }
}

@end
